package org.myorg.v4;


import java.io.Serializable;

public abstract class Gene4 implements Serializable, Comparable<Gene4> {
/*	*//**
	 * 
	 *//*
	private static final long serialVersionUID = 1000L;*/
	public int length;
	public double fitness = 0;
	
	public double getFitness() {
		return fitness;
	}
	
	public int compareTo(Gene4 o) {
		int rt = 0;
		if (fitness > o.getFitness()) 
			rt = 1;
		else if (fitness < o.getFitness())
			rt = -1;
		return rt;
	}
}